/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.ssau.utils;

/**
 *
 * @author Desperus
 */
public class StringUtils {

    public static String getValidString(String str) {
        return str != null ? str : "";
    }

    public static boolean isEmpty(String str) {
        if (str == null || (str.trim()).isEmpty()) {
            return true;
        } else {
            return false;
        }
    }

    /*public static int strToInt(String str) throws NumberFormatException {
    return Integer.valueOf(str);
    }*/
}
